package com.chuangsi.project.admin.dto.admin.index;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @author wangshengming
 * @date 2023/4/6
 */
@Data
public class DaySalesDto {

    @ApiModelProperty(value = "今日销售额")
    private BigDecimal todaytSalesAmount;

    @ApiModelProperty(value = "今日销售订单数")
    private Integer todaytSalesNum;

    @ApiModelProperty(value = "昨日销售额")
    private BigDecimal lastDaytSalesAmount;

    @ApiModelProperty(value = "昨日销售订单数")
    private Integer lastDaytSalesNum;

    @ApiModelProperty(value = "日环比",notes = "日环比增长率 = [(今日数值 - 昨日数值) / 昨日数值] × 100%")
    private String moneyDoD;

    @ApiModelProperty(value = "日环比",notes = "日环比增长率 = [(今日数值 - 昨日数值) / 昨日数值] × 100%")
    private String numDoD;



    public DaySalesDto(BigDecimal todaytSalesAmount, Integer todaytSalesNum,BigDecimal lastDaytSalesAmount, Integer lastDaytSalesNum, String moneyDoD, String numDoD) {
        this.todaytSalesAmount = todaytSalesAmount;
        this.todaytSalesNum = todaytSalesNum;
        this.lastDaytSalesAmount = lastDaytSalesAmount;
        this.lastDaytSalesNum = lastDaytSalesNum;
        this.moneyDoD = moneyDoD;
        this.numDoD = numDoD;
    }
}
